package com.vhall.component.controller.chat.facade;


import com.vhall.component.entity.chat.vo.CommentListReqVO;
import com.vhall.component.entity.chat.vo.CommentListRspVO;
import com.vhall.component.entity.chat.vo.CommentSubmissionVO;
import com.vhall.component.entity.page.vo.PageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 评论
 *
 * @author shimingming
 * @since 2023/3/20 14:28
 */
@FeignClient(value = "CommentApiFacade", path = "/v4/api/comment")
public interface CommentApiFacade {

    /**
     * 评论上报
     */
    @PostMapping(value = "/submission")
    boolean commentSubmission(@Validated CommentSubmissionVO reqVo);

    /**
     * 评论list
     */
    @PostMapping(value = "/lists")
    PageVO<CommentListRspVO> lists(@Validated CommentListReqVO reqVo);
}
